import Vue from 'vue'
import Vuex from 'vuex'
import cart from './cart.js'
import logreg from './LogReg.js'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    newbooks:[
        {id:1,url:require("@/assets/BI.gif"),},
        {id:2,url:require("@/assets/BI2.gif"),},
        {id:3,url:require("@/assets/BI3.gif"),},
        {id:4,url:require("@/assets/BI4.gif"),},
        {id:5,url:require("@/assets/BI5.gif"),}
    ],
    isenlarge:false, //购物车大图片

  },
  mutations: {
    setpicturesize: function (state,bool) {
        state.isenlarge = bool
    }
  },
  actions: {
  },
  modules: {
		namespaced: true,
		cart,
		logreg
  }
})
